#include <stdio.h>

#include "test_album.h"

namespace ct {

struct Point {
operator bool() {
  return true;
}
Point(int x, int y) : x(x), y(y) { }
int x, y;
};

//should return a const Point
Point add(const Point &l, const Point &r) {
  return Point(l.x + r.x, l.y + r.y);
}

void ConstTest::Run(int argc, char *argv[]) {
  if (add(Point(1, 2), Point(3, 4)) = Point(2, 3)) printf("hello\n");
}
} // ct
